package com.fengye.algorithms.leecode;

/**
 * @Author fengye
 * @Date 2023/4/10 9:38
 **/
public class RunningSum1480 {
    public int[] runningSum(int[] nums) {
        int[] result = new int[nums.length];
        result[0] = nums[0];
        for(int i=1;i<nums.length;i++) {
            result[i] = result[i-1] + nums[i];

        }
        return result;
    }
}
